import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
//路由守卫
import './guard/index'
import router from './router'
//面包屑组件
import breadCrumb from './components/breadCrumb/index.vue'

//eventBus
import bus from './utils/bus'

let app = createApp(App)

//注册全局组件 所有的组件里面 不需要引用 都可以使用
app.component('breadCrumb',breadCrumb)
//将bus添加到全局
app.config.globalProperties.$bus = bus
app.use(router)
app.mount('#app')
